package com.hnas.ecard.domain;

import java.util.HashMap;
import java.util.Map;

public class ReturnECardStatus {

	public static final String NORMAL = "01"; // 正常
	public static final String PRESENTING = "02"; // 赠送中
	public static final String PRESENTED = "03"; // 已赠送
	public static final String PRESENT_FAIL = "04"; // 赠送拒绝
	public static final String RECEIVING = "05"; // 领取中
	public static final String RECEIVED = "06"; // 已领取
	public static final String BACK_CARDING = "07"; // 退卡中 
	public static final String BACK_CARD = "08"; // 已退卡
	public static final String RECEIVE_FAIL = "09"; // 拒绝领取
	
	private static Map<String, String> eCardStatusMap = new HashMap<String, String>();

	static {
		eCardStatusMap.put(NORMAL, "正常");
		eCardStatusMap.put(PRESENTING, "赠送中");
		eCardStatusMap.put(PRESENTED, "已赠送");
		eCardStatusMap.put(PRESENT_FAIL, "赠送拒绝");
		eCardStatusMap.put(RECEIVING, "待领取");
		eCardStatusMap.put(RECEIVED, "已领取");
		eCardStatusMap.put(BACK_CARDING, "退卡中");
		eCardStatusMap.put(BACK_CARD, "已退卡");
		eCardStatusMap.put(RECEIVE_FAIL, "拒绝领取");
	}

	public static Map<String, String> getECardStatusMap() {
		return eCardStatusMap;
	}

	public static String getECardStatusMapString(String key) {
		return eCardStatusMap.get(key);
	}
}
